import type { GroupHasPermission, GroupHasPermissionResponse } from './types.js';

import { requestClient } from '#/api/request';

export const connectGroupHasPermission = async (data: Partial<GroupHasPermission>) => {
  return requestClient.post<GroupHasPermission>('/uctoo/group_has_permission/connect', data);
};

export const connectChecked = async (data: Partial<GroupHasPermission>) => {
  return requestClient.post<GroupHasPermission>('/uctoo/group_has_permission/connectChecked', data);
};
